Workflow.extend ({   
    /**
     * 获取内容
     */
    setViewTaskContent: function(taskId) {
        $("#TaskId").val(taskId);
        $("#ProcActionCnt").html("loading ......");
        this.getTaskContent();
    },
    getTaskContent: function() {
        var taskId = $("#TaskId").val();
        var params = {act:"getTaskContent", tid: taskId};
        //
        Workflow.Ajax_Response = "getTaskContentResponse";
        this.ajaxAction(params);
    },
    getTaskContentResponse: function(xmlData) {
        var xmlDoc = parseXML(xmlData);
        var content = xmlDoc.selectNodes("//task-content/form-content");
        if(content.length == 1) {
            $("#WorkflowContent").val(getXMLNodeValue(content[0]));
        } else {
            $("#WorkflowContent").val("");
        }
        $("#ProcActionCnt").html("<a href='javascrip:' onclick='Workflow.getTaskContentCancle();'>取消</a>");
    },
    getTaskContentCancle: function() {
        setHideShow(Workflow.Current_View);
    }
});